package data.missions;

import data.Player;
import data.tileables.Rally;

public class Attack extends Mission{
	private int direction;
	private Rally rally;
	private Player player;
	public Attack(Rally r, Player p, int dir)
	{
		displayName = "Attacking";
		rally = r;
		direction = dir;
		player = p;
	}
	public int execute()
	{
		rally.setDirection(direction);
		player.attack(rally.getX(), rally.getY(), direction, rally);
		return 2;
	}

}
